#ifndef _TOOLS_H_
#define _TOOLS_H_

#include <cstdio>
#include <stdint.h>
#include <list>
#include <string>

namespace tools
{
	class DataBuffer
	{
		public:
			void init(FILE*);
			void getData(char*, uint16_t, bool x=false);

		private:
			FILE* file;
			char buffer[10240];
			uint16_t position;
	};

	void splitPath(std::list<std::string>*, std::string);
	bool format_stagfs(FILE*, uint16_t, uint64_t);
	void copyChars(const char*, char*, uint16_t);
}

#endif
